package v1

import (
	"context"
	"vite-tsc-gin/internal/apiserver/store"
)

type SecretSrv interface {
	Create(ctx context.Context) error
	// Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) error
	// Delete(ctx context.Context, username, secretID string, opts metav1.DeleteOptions) error
	// DeleteCollection(ctx context.Context, username string, secretIDs []string, opts metav1.DeleteOptions) error
	// Get(ctx context.Context, username, secretID string, opts metav1.GetOptions) (*v1.Secret, error)
	// List(ctx context.Context, username string, opts metav1.ListOptions) (*v1.SecretList, error)
}

type secretService struct {
	store store.Factory
}

var _ SecretSrv = (*secretService)(nil)

func newSecrets(srv *service) *secretService {
	return &secretService{store: srv.store}
}

func (s *secretService) Create(ctx context.Context) error {
	return s.store.Secrets().Create(ctx)
}
